package com.sanlunche.blog.service;

import com.sanlunche.blog.mapper.UserMapper;
import com.sanlunche.blog.pojo.Emp;
import com.sanlunche.blog.service.impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService implements UserServiceImpl {

    @Autowired
    private UserMapper userMapper;

    @Override
    public Emp login(Emp emp) {
        Emp e = userMapper.getByUsernameandPassword(emp);
        return e;
    }
}
